home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_325 / fam / fam.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  42 lines

  1. /*
  2.  * FAM.h
  3.  * Copyright 1990 Darren New.  All Rights Reserved.
  4.  * See liscence in FAM.c or FAM.doc
  5.  */
  6.  
  7. #ifndef FAM_H
  8. #define FAM_H
  9.  
  10. #ifndef EXEC_NODES_H
  11. #include "exec/nodes.h"
  12. #endif
  13.  
  14. /* This is the declaration of a scan list node */
  15.  
  16. struct ScanListNode {      /* a ScanList entry */
  17.     struct Node node;        /* ln_Name is name, strdupFAM()ed */
  18.     long protection;        /* permission bits */
  19.     long isdir;         /* is a directory? */
  20.     long sizebytes;        /* size in bytes */
  21.     long sizelines;        /* size in lines */
  22.     long filedate;        /* date of file */
  23.     long filetime;        /* time of file */
  24.     char * filenote;        /* strdupFAM()ed file comment or NULL */
  25.     char * contents;        /* buffered lines */
  26.     unsigned isNewFile:1;    /* true if file not expected in directory */
  27.     unsigned isDeleted:1;    /* true if file not found in directory */
  28.     unsigned isGrepped:1;    /* true if file passed GREP function */
  29.     unsigned isLocked:1;    /* true if file not available */
  30.     };
  31.  
  32. #define NT_FILENAME 0xA0    /* for error checking */
  33. #define NT_FILELIST 0xA0    /* for error checking */
  34.  
  35. /* This is the definition of the function loaded by LoadSeg */
  36.  
  37. typedef long GrepFunc(struct ScanListNode *, char *);
  38.  
  39. #endif
  40.  
  41.  
  42.